package com.appengine.news.entity;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Text;

/**
 * RS Item Entity
 * 
 * @author Aliaksandr_Spichakou
 * 
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class RssItemEntity {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;

	@Persistent
	private Date storedData = new Date();

	@Persistent
	private String copyright;
	@Persistent
	private Date created;
	@Persistent
	private Date expired;
	@Persistent
	private Date issued;
	@Persistent
	private Date modified;

	@Persistent
	private Text summury;
	@Persistent
	private Text title;
	@Persistent
	private int hashCode;

	@Persistent
	private String authorEmail;
	@Persistent
	private String authorHref;
	@Persistent
	private String authorName;
	@Persistent
	private String publisherEmail;
	@Persistent
	private String publisherHref;
	@Persistent
	private String publisherName;

	@Persistent
	private Long feedId;

	@Persistent
	private String readedFlag;

	@Persistent
	private String link;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getStoredData() {
		return storedData;
	}

	public void setStoredData(Date storedData) {
		this.storedData = storedData;
	}

	public String getCopyright() {
		return copyright;
	}

	public void setCopyright(String copyright) {
		this.copyright = copyright;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public Date getExpired() {
		return expired;
	}

	public void setExpired(Date expired) {
		this.expired = expired;
	}

	public Date getIssued() {
		return issued;
	}

	public void setIssued(Date issued) {
		this.issued = issued;
	}

	public Date getModified() {
		return modified;
	}

	public void setModified(Date modified) {
		this.modified = modified;
	}

	public Text getSummury() {
		return summury;
	}

	public void setSummury(Text summury) {
		this.summury = summury;
	}

	public Text getTitle() {
		return title;
	}

	public void setTitle(Text title) {
		this.title = title;
	}

	public int getHashCode() {
		return hashCode;
	}

	public void setHashCode(int hashCode) {
		this.hashCode = hashCode;
	}

	public String getAuthorEmail() {
		return authorEmail;
	}

	public void setAuthorEmail(String authorEmail) {
		this.authorEmail = authorEmail;
	}

	public String getAuthorHref() {
		return authorHref;
	}

	public void setAuthorHref(String authorHref) {
		this.authorHref = authorHref;
	}

	public String getAuthorName() {
		return authorName;
	}

	public void setAuthorName(String authorName) {
		this.authorName = authorName;
	}

	public String getPublisherEmail() {
		return publisherEmail;
	}

	public void setPublisherEmail(String publisherEmail) {
		this.publisherEmail = publisherEmail;
	}

	public String getPublisherHref() {
		return publisherHref;
	}

	public void setPublisherHref(String publisherHref) {
		this.publisherHref = publisherHref;
	}

	public String getPublisherName() {
		return publisherName;
	}

	public void setPublisherName(String publisherName) {
		this.publisherName = publisherName;
	}

	public Long getFeedId() {
		return feedId;
	}

	public void setFeedId(Long feedId) {
		this.feedId = feedId;
	}

	public String getReadedFlag() {
		return readedFlag;
	}

	public void setReadedFlag(String readedFlag) {
		this.readedFlag = readedFlag;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

}
